
<template>
	<view class="top">
		<i class="iconfont icon-geren2"></i>
		<text>{{formData.Name}}</text>
		<i class="iconfont icon-a-Frame133"></i>
		<text>{{formData.CardNo}}</text>
		<i v-if="formData.Sex=='男'" class="iconfont icon-sex_man"></i>
		<i v-else class="iconfont icon-sex_woman"></i>
		<text>{{formData.Sex}}</text>
	</view>
	<view class="content">
			<uni-forms :modelValue="formData" label-width='80px' label-align="right">
					<uni-forms-item label="随访日期" required  name="name"  class="uni-mt-5">
						<view class="dataView">
							<text class="tWidth">
								<uni-datetime-picker type="date" return-type="data" :clear-icon="false" v-model="formData.SuifangRiqi"/>
							</text>
							<text><button class="greenBold uni-ml-4" @click="getLatelyFun()">载入最近体检数据</button></text>
						</view>
					</uni-forms-item>
					<uni-forms-item label="姓名"   >
							<uni-easyinput v-model="formData.Name" style="width: 45%;" :disabled="true"  :clearable="false"/>
					</uni-forms-item>
					<uni-forms-item label="随访方式" >
						<uni-data-checkbox v-model="formData.SuifangFangshi" :localdata="SuifangFangshi" />
					</uni-forms-item>
					<uni-forms-item label="失访原因" >
							<uni-data-checkbox v-model="formData.SuifangShifangyuanyin" :localdata="suifangShi"/>
					</uni-forms-item>
					<uni-forms-item label="死亡日期"  class="uni-mt-5">
						<view class="dataView">
							<uni-datetime-picker type="date" return-type="data" :clear-icon="false" v-model="formData.SiwangSiwangriqi"/>
						</view>
					</uni-forms-item>
					<uni-forms-item label="死亡原因" >
						<uni-data-checkbox v-model="formData.SiwangSiwangyuanyin" @change="changeSiwang"  :localdata="YuanYin"/>
					</uni-forms-item>
					<uni-forms-item label="躯体疾病" >
						<uni-data-checkbox :disabled="Siwangdis" v-model="formData.SiwangSiwangyuanyinQutijibing" :localdata="QuTiJiBing" />
					</uni-forms-item>
					<uni-forms-item label="其他死亡原因"   label-width="100px" >
							<uni-easyinput v-model="formData.SiwangSiwangyuanyinQita" placeholder="无" />
					</uni-forms-item>
					<uni-forms-item label="危险性评估"   label-width="100px" >
						<uni-data-checkbox v-model="formData.WeiXianXingPingGu" :localdata="PingGu"/>
					</uni-forms-item>
					<uni-forms-item label="目前症状"   label-width="100px" >
						<uni-data-checkbox v-model="formData.MuQianZhengZhuang" :localdata="MuQianZhengZhuang"/>
					</uni-forms-item>
					<uni-forms-item label="目前症状其他"   label-width="100px" >
							<uni-easyinput v-model="formData.MuqianzhengzhuangQita" placeholder="无" />
					</uni-forms-item>
					<uni-forms-item label="自知力"   label-width="100px" >
						<uni-data-checkbox v-model="formData.ZiZhiLi" :localdata="ZiZhiLi"/>
					</uni-forms-item>
					<uni-forms-item label="睡眠情况"   label-width="100px" >
						<uni-data-checkbox v-model="formData.ShuiMianQingKuang" :localdata="XinLiTiaoZheng"/>
					</uni-forms-item>
					<uni-forms-item label="饮食情况"   label-width="100px" >
						<uni-data-checkbox v-model="formData.YinShiQingKuang" :localdata="XinLiTiaoZheng"/>
					</uni-forms-item>
					<view class="hrView">
						<text>社会功能情况</text>
						<hr />
					</view>
					<uni-forms-item label="个人生活料理"  class="uni-mt-10" :label-width="labelWidth210">
						<uni-data-checkbox v-model="formData.ShehuigongnengGerenshenghuo" :localdata="XinLiTiaoZheng"/>
					</uni-forms-item>
					<uni-forms-item label="家务劳动" :label-width="labelWidth210" >
						<uni-data-checkbox v-model="formData.ShehuigongnengJiawulaodong" :localdata="XinLiTiaoZheng"/>
					</uni-forms-item>
					<uni-forms-item label="生产劳动及工作" :label-width="labelWidth210" >
						<uni-data-checkbox v-model="formData.ShehuigongnengShengchanlaodong" :localdata="XinLiTiaoZheng"/>
					</uni-forms-item>
					<uni-forms-item label="学习能力" :label-width="labelWidth210">
						<uni-data-checkbox v-model="formData.ShehuigongnengXuexinengli" :localdata="XinLiTiaoZheng"/>
					</uni-forms-item>
					<uni-forms-item label="社会人际交往" :label-width="labelWidth210">
						<uni-data-checkbox v-model="formData.ShehuigongnengShenhuirenjijiaowang" :localdata="XinLiTiaoZheng"/>
					</uni-forms-item>
					<view class="hrView">
						<text>危险行为</text>
						<hr />
					</view>
					<uni-forms-item label="危险行为" class="uni-mt-10" >
						<uni-data-checkbox v-model="formData.Weixianxingwei" :localdata="weixianxingwei"/>
					</uni-forms-item>
					<view class="blood">
						<uni-forms-item label="轻度滋事次数" label-width="100px">
								<uni-easyinput v-model="formData.WeixianxingweiQingduzishi" :clearable="false" placeholder="0" />
						</uni-forms-item>
					<uni-forms-item label="肇事次数" label-width="100px">
							<uni-easyinput v-model="formData.WeixianxingweiZhaoshi" :clearable="false" placeholder="0" />
					</uni-forms-item>
					</view>
					<view class="blood">
						<uni-forms-item label="其他危害行为" label-width="100px">
								<uni-easyinput v-model="formData.WeixianxingweiQita" :clearable="false" placeholder="0" />
						</uni-forms-item>
						<uni-forms-item label="肇祸次数" label-width="100px">
								<uni-easyinput v-model="formData.WeixianxingweiZhaohuo" :clearable="false" placeholder="0" />
						</uni-forms-item>
					</view>
					<view class="blood">
						<uni-forms-item label="自杀未遂次数" label-width="100px">
								<uni-easyinput v-model="formData.WeixianxingweiZishawuisui" :clearable="false" placeholder="0" />
						</uni-forms-item>
					</view>
					<uni-forms-item label="随访期间关锁情况" label-width="130px">
						<uni-data-checkbox v-model="formData.SuiFangQiJianGuanSuoQingKuang" :localdata="GuanSuoQingKuang"/>
					</uni-forms-item>
					<uni-forms-item label="随访期间住院情况" label-width="130px">
						<uni-data-checkbox v-model="formData.SuiFangQiJianZhuYuanQingKuang" :localdata="ZhuYuanQingKuang"/>
					</uni-forms-item>
					<uni-forms-item label="随访期间住院日期" label-width="130px">
						<uni-datetime-picker type="date" return-type="data" :clear-icon="false" v-model="formData.SuiFangQiJianChuYuanRiQi"/>
					</uni-forms-item>
					<uni-forms-item label="实验检查" label-width="100px">
						<uni-data-checkbox v-model="formData.ShiYanShiJianCha" :localdata="weixianxingwei"/>
					</uni-forms-item>
					<uni-forms-item label="服药依从性" label-width="100px">
						<uni-data-checkbox v-model="formData.YaowuFuyaoyicongxing" :localdata="FuYaoYiCongXing"/>
					</uni-forms-item>
					<uni-forms-item label="药物不良反应" label-width="100px">
						<uni-data-checkbox v-model="formData.YaowuYaowubuliangfanying" :localdata="YaoWuBuLiangFanYing" />
					</uni-forms-item>
			
					<uni-forms-item label="治疗效果" label-width="100px">
						<uni-data-checkbox v-model="formData.ZhiLiaoXiaoGuo" :localdata="ZhiLiaoXiaoGuo"/>
					</uni-forms-item>
					<view class="hrView uni-mt-10 uni-mb-5">
						<text>转诊</text>
						<hr />
					</view>
					<uni-forms-item label="是否转诊" label-width="100px">
						<uni-data-checkbox v-model="formData.Zhuanzhen" :localdata="zhuanzhen"/>
					</uni-forms-item>
					<uni-forms-item label="转诊原因" label-width="100px">
						<uni-easyinput v-model="formData.ZhuanzhenYuanyin" :clearable="false" />
					</uni-forms-item>
					<uni-forms-item label="机构及科别" label-width="100px">
						<uni-easyinput v-model="formData.ZhuanzhenJigou" :clearable="false" />
					</uni-forms-item>

					<view class="hrView">
						<text>目前用药情况</text>
						<hr />
					</view>
					<view class="">
						<uni-forms-item label="药品名称1"  style="height: 40rpx" class="uni-mt-10"   >
							<view class="newBox">
								<uni-easyinput v-model="formData.YaowuMingcheng"  :clearable="false"/>
								<button @click="goDrugs(1)">选择药品</button>
							</view>	
						</uni-forms-item>
						<uni-forms-item label="每日/次" style="height: 40rpx" class="blueColor"   >
								<view class="Double">
									<view>
									<uni-easyinput v-model="formData.YaowuPinci" placeholder="次"  :clearable="false"/>
								</view>
								<view>
									<uni-forms-item label="每次"    label-width="100rpx">
										<uni-easyinput v-model="formData.YaowuYongliang"  :clearable="false"/>
									</uni-forms-item>
								</view>
								</view>
						</uni-forms-item>
						<uni-forms-item label="备注" style="height: 40rpx" class="blueColor"    label-width="160rpx">
							<uni-easyinput v-model="formData.YaowuBeizhu"  :clearable="false" />
						</uni-forms-item>
					</view>
					<view>
						<uni-forms-item label="药品名称2" style="height: 40rpx;margin-top: 70rpx;"   >
							<view class="newBox">
								<uni-easyinput v-model="formData.YaowuMingcheng1"  :clearable="false"/>
								<button @click="goDrugs(2)">选择药品</button>
							</view>	
						</uni-forms-item>
						<uni-forms-item label="每日/次" style="height: 40rpx" class="blueColor"   >
								<view class="Double">
									<view>
									<uni-easyinput v-model="formData.YaowuPinci1" placeholder="次"  :clearable="false" />
								</view>
								<view>
									<uni-forms-item label="每次"    label-width="100rpx">
										<uni-easyinput v-model="formData.YaowuYongliang1"  :clearable="false" />
									</uni-forms-item>
								</view>
								</view>
						</uni-forms-item>
						<uni-forms-item label="备注" style="height: 40rpx" class="blueColor"    label-width="160rpx">
							<uni-easyinput v-model="formData.YaowuBeizhu1"  :clearable="false" />
						</uni-forms-item>
					</view>
					<view class="">
						<uni-forms-item label="药品名称3"  style="height: 40rpx;margin-top: 70rpx;" class="uni-mt-10"   >
							<view class="newBox">
								<uni-easyinput v-model="formData.YaowuMingcheng2"  :clearable="false"/>
								<button @click="goDrugs(3)">选择药品</button>
							</view>	
						</uni-forms-item>
						<uni-forms-item label="每日/次" style="height: 40rpx" class="blueColor"   >
								<view class="Double">
									<view>
									<uni-easyinput v-model="formData.YaowuPinci2" placeholder="次"  :clearable="false"/>
								</view>
								<view>
									<uni-forms-item label="每次"    label-width="100rpx">
										<uni-easyinput v-model="formData.YaowuYongliang2"  :clearable="false"/>
									</uni-forms-item>
								</view>
								</view>
						</uni-forms-item>
						<uni-forms-item label="备注" style="height: 40rpx" class="blueColor"    label-width="160rpx">
							<uni-easyinput v-model="formData.YaowuBeizhu2"   :clearable="false"/>
						</uni-forms-item>
					</view>
					<view class="hrView">
						<text>用药指导</text>
						<hr />
					</view>
					<view class="">
						<uni-forms-item label="药品名称" class="uni-mt-10" style="height: 40rpx"   >
							<view class="newBox">
								<uni-easyinput v-model="formData.yaowuzhidaoMingCheng "  :clearable="false"/>
								<button @click="goDrugs(4)">选择药品</button>
							</view>	
						</uni-forms-item>
						<uni-forms-item label="每日/次" style="height: 40rpx" class="blueColor"   >
								<view class="Double">
									<view>
									<uni-easyinput v-model="formData.yaowuzhidaoPinCi" placeholder="次"  :clearable="false"/>
								</view>
								<view>
									<uni-forms-item label="每次"  label-width="100rpx">
										<uni-easyinput v-model="formData.yaowuzhidaoYongLiang"  :clearable="false"/>
									</uni-forms-item>
								</view>
								</view>
						</uni-forms-item>
						<uni-forms-item label="备注" style="height: 40rpx" class="blueColor"    label-width="160rpx">
							<uni-easyinput v-model="formData.yaowuzhidaoBeiZhu"  :clearable="false" />
						</uni-forms-item>
					</view>
				
					<view class="hrView">
						<hr />
					</view>
					<uni-forms-item label="此次随访分类" :label-width="labelWidth210">
						<uni-data-checkbox v-model="formData.SuiFangFenLei"  :localdata="SuiFangFenLei" />
					</uni-forms-item>
					<uni-forms-item label="康复措施" :label-width="labelWidth210">
						<uni-data-checkbox v-model="formData.kangfucuoshi"  :localdata="kangfucuoshi" />
					</uni-forms-item>
					<uni-forms-item label="康复措施其他" style="height: 40rpx" class="blueColor"  :label-width="labelWidth210">
						<uni-easyinput v-model="formData.kangfucuoshiQiTa"  :clearable="false" />
					</uni-forms-item>
					<uni-forms-item label="下次随访日期"  name="name" :label-width="labelWidth210"  class="uni-mt-5">
						<uni-datetime-picker type="date" return-type="data" :clear-icon="false" v-model="formData.Xiacisuifangriqi"/>
					</uni-forms-item>
					<uni-forms-item label="医生签名"     style="height: 50px;" :label-width="labelWidth210" >
						 <image  class="signature" @click="goSignature(1)" :src="formData.YishengQianMing" mode="" />
					</uni-forms-item>
				</uni-forms>
				<button @click="submitForm" class="submitBut">保存</button>
				<view class="uni-mt-10" style="height: 10rpx;"></view>
	</view>
</template>

<script>
	import {getJSZADetails,addJSZAForm,UpdateJSZAForm,getLately} from '@/api/index.js'
	export default {
		data() {
			return {
				suifangShi:[{text:'外出打工',value:'1'},{text:'迁居他处',value:'2'},{text:'走失',value:'3'},{text:'连续三次未到访',value:'4'},{text:'其他',value:'5'}],
				YuanYin:[{text:'躯体疾病',value:'1'},{text:'自杀',value:'2'},{text:'他杀',value:'3'},{text:'意外',value:'4'},{text:'精神疾病相关并发症',value:'5'},{text:'其他',value:'6'}],
				SuifangFangshi:[{text:'门诊',value:'1'},{text:'家庭',value:'2'},{text:'电话',value:'3'}],
				QuTiJiBing:[{text:'传染病和寄生虫病',value:'1'},{text:'肿瘤',value:'2'},{text:'心脏病',value:'3'},{text:'脑血管病',value:'4'},{text:'呼吸系统疾病',value:'5'},{text:'消化系统疾病',value:'6'},{text:'其他疾病',value:'7'},{text:'不祥',value:'8'}],
				PingGu:[{text:'0级',value:'0'},{text:'1级',value:'1'},{text:'2级',value:'2'},{text:'3级',value:'3'},{text:'4级',value:'4'},{text:'5级',value:'5'}],
				MuQianZhengZhuang:[{text:'幻觉',value:'1'},{text:'交流困难',value:'2'},{text:'猜疑',value:'3'},{text:'喜怒无常',value:'4'},{text:'行为怪异',value:'5'},{text:'兴奋话多',value:'6'},{text:'伤人毁物',value:'7'},{text:'悲观厌世',value:'8'},{text:'无故外走',value:'9'},{text:'自语自笑',value:'10'},{text:'孤僻懒散',value:'11'}],
				ZiZhiLi:[{text:'自知力完全',value:'1'},{text:'自知力不全',value:'2'},{text:'自知力缺失',value:'3'}],
				weixianxingwei:[{text:'无',value:'1'},{text:'有',value:'2'}],
				GuanSuoQingKuang:[{text:'无关锁',value:'1'},{text:'关锁',value:'2'},{text:'关锁已解除',value:'3'}],
				ZhuYuanQingKuang:[{text:'未住院',value:'1'},{text:'目前正在转院',value:'2'},{text:'曾住院，现未住院',value:'3'}],
				FuYaoYiCongXing:[{text:'按医嘱规律用药',value:'1'},{text:'间断用药',value:'2'},{text:'不用药',value:'3'},{text:'医嘱勿需用药',value:'4'}],
				ZhiLiaoXiaoGuo:[{text:'痊愈',value:'1'},{text:'好转',value:'2'},{text:'无变化',value:'3'},{text:'加重',value:'4'},{text:'此项不适用',value:'9'}],
				zhuanzhen:[{text:'否',value:'1'},{text:'是',value:'2'}],
				kangfucuoshi:[{text:'生活劳动力',value:'1'},{text:'职业训练',value:'2'},{text:'学习能力',value:'3'},{text:'社会交往',value:'4'},{text:'其他',value:'5'}],
				SheYan_MuQian:[{text:'轻',value:1},{text:'中',value:2},{text:'重',value:3}],
				XinLiTiaoZheng:[{text:'良好',value:'1'},{text:'一般',value:'2'},{text:'较差',value:'3'}],
				FuYaoYiCongXing:[{text:'规律',value:'1'},{text:'间断',value:'2'},{text:'不服药',value:'3'}],
				YaoWuBuLiangFanYing:[{text:'无',value:'1'},{text:'有',value:'2'},{text:'此项不适用',value:'9'}],
				SuiFangFenLei:[{text:'不稳定',value:'1'},{text:'基本稳定',value:'2'},{text:'稳定',value:'3'}],
				labelWidth210:'120px',
				formData:{
					TizhengBmi1:this.TizhengBmiCom
				},
				oldFormData:{},
				ID:'',
				AppId:'',
				yaopinNum:'',
				yiimgUrl:'',
				juimgUrl:'',
				imgNum:'', // 判断医生前面还是居民签名
				msg:'',
				Siwangdis:'true',
				JSZAMap:{
					'YaowuMingcheng':'yaowu_mingcheng',
					'YaowuMingcheng1':'yaowu_mingcheng1',
					'YaowuMingcheng2':'yaowu_mingcheng2',
					'YaowuPinci': 'yaowu_pinci',
					'YaowuPinci1': 'yaowu_pinci1',
					'YaowuPinci2': 'yaowu_pinci2',
					'YaowuYongliang':'yaiwu_yongliang',
					'YaowuYongliang1':'yaiwu_yongliang1',
					'YaowuYongliang2':'yaiwu_yongliang2',
					'YaowuFuyaoyicongxing':'yaowu_yicongxing'
				}
			}
		},
		onLoad(option){
			this.msg = option.msg
			this.ID = option.Id
			this.AppId = option.appId
			if(option.Id){ // 存在编辑
				getJSZADetails(option.Id).then(res=>{ // 随访记录详情
					this.formData = JSON.parse(JSON.stringify({...res}))
					this.oldFormData =JSON.parse(JSON.stringify({...res})) 
					this.formData.Zhengzhuang = res.Zhengzhuang?.split(',').map(Number)
					this.formData.TizhengBmi1 = this.TizhengBmiCom
					this.formData.SiwangSiwangyuanyin == '1' ? this.Siwangdis = false : this.Siwangdis = true
				})
			}else{ // 不存在新增
			addJSZAForm(option.appId).then(res=>{
				this.formData = JSON.parse(JSON.stringify({...res[0]}))
				this.oldFormData =JSON.parse(JSON.stringify({...res[0]})) 
				this.formData.Zhengzhuang = res[0].Zhengzhuang?.split(',').map(Number) 
				this.formData.TizhengBmi1 = this.TizhengBmiCom
				this.formData.AppId = option.appId
			})
			}
		},
		methods: {
			submitForm(){
				this.formData.Zhengzhuang ? this.formData.Zhengzhuang = this.formData.Zhengzhuang.toString():''
				let form = this.findDifferentValues(this.oldFormData,this.formData)
				// console.log(form)
				this.formData.Xiacisuifangriqi = this.formData.Xiacisuifangriqi ? this.formData.Xiacisuifangriqi :this.getTime(this.formData.SuifangRiqi)
				UpdateJSZAForm(this.formData).then(res=>{
					if(res=="1" || res.Id != '0'){
						uni.showToast({
							icon: 'none',
							title: '保存成功'
						})
						setTimeout(()=>{return uni.navigateBack({url:'/pages/start/start'})},2000)
					}
				})
			},
			getTime(inputDateStr){
				// 将字符串转换为日期对象
				var inputDate = new Date(inputDateStr);
				// 将日期向后延迟三个月
				inputDate.setMonth(inputDate.getMonth() + 3);
				// 将延迟后的日期转换为字符串
				var delayedDateStr = inputDate.toISOString();
				return delayedDateStr
			},
			getLatelyFun(){  // 获取最新数据
				getLately(this.AppId).then(res => {
					if(res.length > 0){
						this.formData.YaowuMingcheng = res[0][this.JSZAMap.YaowuMingcheng]
						this.formData.YaowuMingcheng1 = res[0][this.JSZAMap.YaowuMingcheng1]
						this.formData.YaowuMingcheng2 = res[0][this.JSZAMap.YaowuMingcheng2]
						this.formData.YaowuPinci = res[0][this.JSZAMap.YaowuPinci]
						this.formData.YaowuPinci1 = res[0][this.JSZAMap.YaowuPinci1]
						this.formData.YaowuPinci2 = res[0][this.JSZAMap.YaowuPinci2]
						this.formData.YaowuYongliang = res[0][this.JSZAMap.YaowuYongliang]
						this.formData.YaowuYongliang1 = res[0][this.JSZAMap.YaowuYongliang1]
						this.formData.YaowuYongliang2 = res[0][this.JSZAMap.YaowuYongliang2]
						this.formData.YaowuFuyaoyicongxing = res[0][this.JSZAMap.YaowuFuyaoyicongxing]
						uni.showToast({
							icon: 'none',
							title: '载入成功'
						})
					}else{
						uni.showToast({
							icon: 'none',
							title: '无数据'
						})
					}
				})
			},
			findDifferentValues(obj, obj2) {
			var str={}
				 for(let key in obj){
				     for(let keys in obj2){
				        if(obj[key]!=obj2[key]){
				            str[key]=obj2[key]                   
				        }
				    }
				}
			   return str;
			 },

			goDrugs(val){
				this.yaopinNum = val // 存储判断返回回来的药品是第几个药品
				uni.navigateTo({
					url:`/pages/Drugs/Drugs?msg=${this.msg}`
				})
			},
			maskClick(e){
				console.log('maskClick事件:', e);
			},
			prevDateFun(object){  // 接收返回回来的药品
				if(this.yaopinNum == '1'){
					this.formData.YaowuMingcheng = object.name
					this.formData.YaowuPinci = object.pinci
					this.formData.YaowuYongliang = object.yongliang
					this.formData.YaowuBeizhu = object.beizhu
				}else if(this.yaopinNum == '2'){
					this.formData.YaowuMingcheng1 = object.name
					this.formData.YaowuPinci1 = object.pinci
					this.formData.YaowuYongliang1 = object.yongliang
					this.formData.YaowuBeizhu1 = object.beizhu
				}else if(this.yaopinNum == '3'){
					this.formData.YaowuMingcheng2 = object.name
					this.formData.YaowuPinci2 = object.pinci
					this.formData.YaowuYongliang2 = object.yongliang
					this.formData.YaowuBeizhu2 = object.beizhu
				}else if(this.yaopinNum == '4'){
					this.formData.yaowuzhidaoMingCheng = object.name
					this.formData.yaowuzhidaoPinCi = object.pinci
					this.formData.yaowuzhidaoYongLiang = object.yongliang
					this.formData.yaowuzhidaoBeiZhu = object.beizhu
				}
			},
			changeSiwang(e){
				if(e.detail.value == '1'){
					this.Siwangdis = false 
				}else{
					this.Siwangdis = true 
					this.formData.SiwangSiwangyuanyinQutijibing=''
				}
			},
			goSignature(val){
				this.imgNum = val
				uni.navigateTo({
					url:"/pages/signature/signature"
				})
			},
			signatureImg(object){
				if(this.imgNum == '1'){ // 医生签字
					this.formData.YishengQianMing = object
				}else if(this.imgNum == '2'){ // 居民签字
					this.formData.jumingQianMing = object
				}
			}
		},
		computed: {
			TizhengBmiCom() {
				return this.formData.TizhengShengao  && this.formData.TizhengTizhong1  ? 
				(this.formData.TizhengTizhong1 / ((this.formData.TizhengShengao/100)*(this.formData.TizhengShengao/100))).toFixed(2):''
			}
		},
		watch:{
			TizhengBmiCom(newVal, oldVal){
				this.formData.TizhengBmi1 = newVal
			}
		}
	}
</script>

<style lang="scss">
	.uni-easyinput {
	  font-size: 16px; /* 设置输入框的字体大小 */
	  transform: none; /* 取消输入时的放大效果 */
	}
	.content{
		width: 100wh;
		padding: 0 15rpx;
		box-sizing:border-box;
	}
	:deep(.uni-data-checklist){
		top: 12rpx !important;
	}
	.top{
		display: flex;
		font-size: 22rpx;
		background-color: #C9F7CA;
		padding: 0 15rpx;
		height:60rpx;
		line-height: 60rpx;
		text{
			margin-right: 10rpx;
		}
	}
	.dataView{
		display: flex;
		align-items: center;
		button{
			font-size: 26rpx;
			border-radius: 100rpx;
		}
		.tWidth{
			width: 45%;
		}
	}
	.Double{
		display: flex;
		:deep(.uni-select) {
			margin-right: 75rpx;
		}
		.uni-easyinput{
			width: 90%;
		}
	}
	.blood{
		display: flex;
		:deep(.uni-forms-item__content){
			display: flex !important;
			height: 20px;
			 .uni-easyinput__content-input{
				width: 40px !important;
			}
			button{
				font-size: 20rpx;
				border-radius: 100rpx;
				background-color: #009316;
				color: white;
				height: 35px;
				line-height: 35px;
			}
		}
	}
	.hrView{
		position: relative;
		height: 40rpx;
		text{
			padding: 0 15rpx;
			position: absolute;
			display: inline-block;
			background-color: #F5F5F5;
			z-index: 1;
			margin-left: 20rpx;
		}
		hr{
			width: 100%;
			position: absolute;
			top: 20rpx;
			background-color: #dfdfdf;
			border:1px solid #dfdfdf;
			border-bottom:none ;
		}
		button{
			font-size: 22rpx;
			width:200rpx
		}
	}
	// .blueColor >:deep(.uni-forms-item__label){
	// 	color:#4197C6 !important;
	// }
	.badness{
		.uni-easyinput{
			margin-left: 15rpx;
			width: 110px;
		}
	}
	.green{
		background-color: #009316;
		color: white;
	}
	.greenBold{
		background-color: #008989;
		color: white;
	}
	.signature{
		border: 1px solid #dfdfdf;
		height: 200rpx;
		width: 100rpx;
		transform-origin:right;
		transform:rotate(90deg);
	}
	textarea{
		border: 1px solid #dfdfdf;
		width: 100%;
		min-height: 300rpx;
	}
	.submitBut{
		font-size: 20rpx;
		border-radius: 100rpx;
		background-color: #009316;
		color: white;
		width: 20%;
	}
	.newBox{
		display: flex;
		button{
			margin-left: 10rpx;
			font-size: 16rpx;
			height: 70rpx;
			line-height: 70rpx;
			background-color: #009316;
			color: white;
		}
	}

</style>